 void main(String[]args) {
        int a = 7;
        double x = 2.5;
        double y = 4.7;
        int intXY = (int) (x + y);
        int aMod3 = a % 3;
        int intXYMod2 = intXY % 2;
        int part = aMod3 * intXYMod2 / 4;
        double result = x + part;
        System.out.println("计算结果为：" + result);
    }
